/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-06-05
 * 17:11
 */
public class login {
    private String useNamed;
    private String passWord;

    public void logininf(String useNamed,String passWord)throws useNameexception,passWordexception{
        if(!this.useNamed.equals(useNamed)){
            throw new useNameexception("用户名错误");
        }
        if(!this.passWord.equals(passWord)){
            throw new passWordexception("密码错误");
        }
        System.out.println("登入成功");
    }

    public String getUseNamed() {
        return useNamed;
    }

    public void setUseNamed(String useNamed) {
        this.useNamed = useNamed;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
}
